<form id="form1" name="form1" method="post" action="">
  <table border="0" cellspacing="4" cellpadding="4" align="center">
  {if $action ne "view"}
  <tr>
  	<th width="86">Item</th>
	<th width="261">Current Value</th>
	<th width="71">Check to hide value </th>
	<th width="225">Help</th>
	</tr>
  {/if}
    <tr>
      <td valign="top"{if $action eq 'view'}width="50%"{/if}>Username:</td>
      <td colspan="2">
	  	{if $action eq "add"}<input type="text" name="tusername">{else}{$username}{/if}
	  </td>
		{if $action ne "view"}<td>
		{if $action eq "add"} Please select a username. Usernames can only include a-z, A-Z, 0-9, &quot;.&quot;, and &quot;_&quot;.{else}This is your STIMPy! Username. (This value cannot be hidden.) {/if} </td>
      {/if}    </tr>
	<tr>
		<td valign="top">Email Address:</td>
		<td>{if $action ne "view"}
		  <input type="text" name="temail">
        {else}{$email}{/if}</td>
		<td>
    <tr>
      <td valign="top">Real Name : </td>
      <td>{if $action eq "view" && $hide_realname eq false}{$realname}{else}
        <input name="tname" type="text" id="tname" value="{$realname}" />
        {/if} </td>
      {if $action ne "view"}<td align="center"><input name="cname" type="checkbox" id="cname" value="checkbox" /></td>
      <td>This is {$username}'s real name. </td>
      {/if}    </tr>
    <tr>
      <td valign="top">Location:</td>
      <td>{if $action eq "view"}{$location}
        {else}
        <input name="tloc" type="text" id="tloc" value="{$location}" />
        {/if}</td>
      {if $action ne "view"}<td align="center"><input name="cloc" type="checkbox" id="cloc" value="checkbox" checked="checked" /></td>
      <td>Where in the world you are located. (This is hidden by default.) </td>{/if}    </tr>
    <tr>
      <td valign="top">Age:</td>
      <td><p>{if $action eq "view"}{$age}{else}Month:
          <select name="month" id="month">
            <option value="1" selected="selected">January</option>
            <option value="2">February</option>
            <option value="3">March</option>
            <option value="4">April</option>
            <option value="5">May</option>
            <option value="6">June</option>
            <option value="7">July</option>
            <option value="8">August</option>
            <option value="9">September</option>
            <option value="10">October</option>
            <option value="11">November</option>
            <option value="12">December</option>
            </select>Day:
            <select name="day" id="day">
              <option value="1" selected="selected">1</option>
              <option value="2">2</option>
              <option value="3">3</option>
              <option value="4">4</option>
              <option value="5">5</option>
              <option value="6">6</option>
              <option value="7">7</option>
              <option value="8">8</option>
              <option value="9">9</option>
              <option value="10">10</option>
              <option value="11">11</option>
              <option value="12">12</option>
              <option value="13">13</option>
              <option value="14">14</option>
              <option value="15">15</option>
              <option value="16">16</option>
              <option value="17">17</option>
              <option value="18">18</option>
              <option value="19">19</option>
              <option value="20">20</option>
              <option value="21">21</option>
              <option value="22">22</option>
              <option value="23">23</option>
              <option value="24">24</option>
              <option value="25">25</option>
              <option value="26">26</option>
              <option value="27">27</option>
              <option value="28">28</option>
              <option value="29">29</option>
              <option value="30">30</option>
              <option value="31">31</option>
            </select>
        Year: <input name="year" type="text" id="year" value="{$year}" size="4" maxlength="4" />{/if}
        </p>        </td>
      {if $action ne "view"}<td align="center"><input type="checkbox" name="checkbox" value="checkbox" /></td>
		<td>Please enter you birthdate. Age will be automatically determined. </td>{/if}    </tr>
    <tr>
      <td valign="top">Maritial Status: </td>
      <td>{if $action eq "view"}{$maritial}      
        {else}
        <select name="tstatus" id="tstatus">
          <option value="0">Single (not looking)</option>
          <option value="1">Single and Looking</option>
          <option value="2">Married</option>
          <option value="3">Separated</option>
          <option value="4">Divorced</option>
          <option value="5">Widowed</option>
        </select>
        {/if}      </td>
     {if $action ne "view"} <td align="center"><input type="checkbox" name="checkbox2" value="checkbox" /></td>
      <td>What is you Maritial Status? </td>{/if}    </tr>
    <tr>
      <td valign="top">Gender:</td>
      <td>{if $action eq "view"} {$gender}
        {else}
        <select name="tgender" id="tgender">
          <option value="0">Male</option>
          <option value="1">Female</option>
        </select>
        {/if}      </td>
      {if $action ne "view"}<td align="center"><input type="checkbox" name="checkbox3" value="checkbox" /></td>
      <td>Are you Male or Female? If neither or both, then select the one that best fits you. </td>{/if}    </tr>
    <tr>
      <td valign="top">Occupation:</td>
      <td>{if $action eq "view"}{$occupation}
        {else}
        <input name="toccup" type="text" id="toccup" value="{$occupation}" />
        {/if}</td>
      {if $action ne "view"}<td align="center"><input type="checkbox" name="checkbox4" value="checkbox" /></td>
    	<td>What do you do for a living? </td>{/if}    </tr>
    <tr>
      <td valign="top">Hobbies:</td>
      <td>{if $action eq "view"}{$hobbies}
        {else}
        <textarea name="thobby" id="thobby">{$hobbies}</textarea>
        {/if}</td>
      {if $action ne "view"}<td align="center"><input type="checkbox" name="checkbox5" value="checkbox" /></td>
      <td>What do you like doing for fun? </td>{/if}    </tr>
    <tr>
      <td valign="top">Favorite Quote(s): </td>
      <td>{if $action eq "view"}{$quotes}
        {else}
        <textarea name="tquote" id="tquote">{$quotes}</textarea>
        {/if}</td>
      {if $action ne "view"}<td align="center"><input type="checkbox" name="checkbox6" value="checkbox" /></td>
      <td>What are some of the best quotes you've heard? </td>{/if}    </tr>
    <tr>
      <td valign="top">News:</td>
      <td>      {if $action eq "view"}{$news}
        {else}
        <textarea name="tnews" id="tnews">{$news}</textarea>
        {/if}</td>
      {if $action ne "view"}<td align="center"><input type="checkbox" name="checkbox7" value="checkbox" /></td>
      <td>What are somethings that have happened to you lately? </td>{/if}    </tr>
    <tr>
      <td valign="top">Homepage: </td>
      <td>{if $action eq "view"}<a href="{$homepage}">{$homepage}</a>
        {else}
        <input name="thomepage" type="text" id="thomepage" value="{$homepage}" />
        {/if}</td>
      {if $action ne "view"}<td align="center"><input type="checkbox" name="checkbox8" value="checkbox" /></td>
      <td>If you have a webpage, please enter it here. </td>{/if}    </tr>
    <tr>
      <td valign="top">My favorite sites: </td>
      <td>{if $action eq "view"}{$links}
        {else}
        <textarea name="tlinks" id="tlinks">{$links}</textarea>
        {/if}</td>
      {if $action ne "view"}<td align="center"><input type="checkbox" name="checkbox9" value="checkbox" /></td>
      <td>What are some sites you frequent? (Only one address per line) </td>{/if}    </tr>
  </table>
  <p align="right">
    <input name="btnReset" type="reset" id="btnReset" value="Reset" />
    <input name="btnSubmit" type="submit" id="btnSubmit" value="Submit" />
  </p>
</form>